Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(operator): use correct parent/child span relationship #418

Merged
merged 5 commits into from
Nov 21, 2022

Conversation

thisthat
Copy link
Member

Signed-off-by: Giovanni Liva [email protected]

Fixes #336

Screenshot 2022-11-15 at 10 13 01

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #418 (3760919) into main (fdf3f4b) will increase coverage by 5.14%.
The diff coverage is 55.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #418      +/-   ##
==========================================
+ Coverage   32.84%   37.99%   +5.14%     
==========================================
  Files          19       28       +9     
  Lines        1516     2082     +566     
==========================================
+ Hits          498      791     +293     
- Misses        989     1227     +238     
- Partials       29       64      +35     
Impacted Files Coverage Δ
operator/controllers/common/spanhandler.go 78.57% <ø> (ø)
operator/controllers/common/test_utils.go 0.00% <0.00%> (ø)
operator/controllers/common/phasehandler.go 77.61% <100.00%> (ø)
operator/controllers/keptnappversion/controller.go 71.87% <100.00%> (ø)
operator/controllers/keptntask/job_utils.go 40.00% <0.00%> (ø)
...ers/keptnappversion/reconcile_prepostevaluation.go 81.25% <0.00%> (ø)
...ollers/keptnappversion/reconcile_workloadsstate.go 47.72% <0.00%> (ø)
operator/controllers/keptntask/function_utils.go 77.77% <0.00%> (ø)
...ers/keptnappversion/reconcile_prepostdeployment.go 81.25% <0.00%> (ø)
operator/controllers/keptntask/task_utils.go 57.14% <0.00%> (ø)
... and 2 more
Flag Coverage Δ
keptn-lifecycle-operator 41.96% <55.93%> (+4.28%) ⬆️
scheduler 4.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@odubajDT
Copy link
Contributor

@thisthat
Copy link
Member Author

I guess we might want to fix this in workloadInstance as well main/operator/controllers/keptnworkloadinstance/controller.go#L162

At the moment, this is not problematic since the parent/child relationship for Workload is correct. However, this will be reworked with #410

odubajDT
odubajDT previously approved these changes Nov 16, 2022
@RealAnna RealAnna added the on hold Do not merge yet label Nov 17, 2022
@RealAnna RealAnna changed the title fix(operator): Use correct parent/child span relationship fix(operator): use correct parent/child span relationship Nov 17, 2022
@RealAnna RealAnna force-pushed the fix/336/span-parent branch from 9a87943 to 8b7eeaa Compare November 21, 2022 07:36
@RealAnna RealAnna removed the on hold Do not merge yet label Nov 21, 2022
Signed-off-by: RealAnna <[email protected]>
odubajDT
odubajDT previously approved these changes Nov 21, 2022
Signed-off-by: RealAnna <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Nov 21, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@thschue thschue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thschue thschue merged commit 24efc80 into keptn:main Nov 21, 2022
@keptn-bot keptn-bot mentioned this pull request Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracing: Incorrect parent/child relationship
5 participants